package com.eight.cloud.uid.config;

/**
 * @ClassName: UidGenerator
 * @Author: TXC
 * @Date: 2025-09-09 10:53
 **/
public interface UidGeneratorService {
    /**
     * 获取uid
     *
     * @return 生成的uid
     */
    long nextId();

    /**
     * 格式化传入的uid，方便查看其实际含义
     *
     * @param uid 要格式化的uid
     * @return 格式化后的uid
     */
    String parse(long uid);
}
